package constant

var (
	//公共
	STATUS_Y      = "Y"
	STATUS_N      = "N"
	ERROR_NO_DATA = "record not found"

	//修改用户信息枚举
	UPDATE_USER_TYPE_MOBILE = "mobile"
	UPDATE_USER_TYPE_PWD    = "pwd"

	//校验验证码类型 rand/mobile/email
	VER_CODE_RAND   = "rand"
	VER_CODE_MOBILE = "mobile"
	VER_CODE_EMAIL  = "email"

	//系统监控 cpu  disk  host mem net process winservices load
	SYS_MONITER_CPU     = "cpu"
	SYS_MONITER_DISK    = "disk"
	SYS_MONITER_HOST    = "host"
	SYS_MONITER_MEM     = "mem"
	SYS_MONITER_NET     = "net"
	SYS_MONITER_PROCESS = "process"
	SYS_MONITER_WIN     = "winservices"
	SYS_MONITER_LOAD    = "load"

	//文件上传
	FILE_TYPE_ONE           = 1
	FILE_TYPE_BATCH         = 2
	FILE_TYPE_DRIVE_LOCAL   = "local"
	FILE_TYPE_DRIVE_ALI_OSS = "alioss"

	//公告发送方式定义
	BULLETIN_SEND_TYPE_NOW      = 1 //立即发送
	BULLETIN_SEND_TYPE_TIMING   = 2 //定时发送
	BULLETIN_SEND_TYPE_INTERVAL = 3 //重复循环发送
	//用户群 类型 1:文件 2: 特定角色 3：特定职位 4：特定用户 5：部门
	USER_GROUP_TYPE_FILE     = 1
	USER_GROUP_TYPE_ROLE     = 2
	USER_GROUP_TYPE_POSITION = 3
	USER_GROUP_TYPE_USERNAME = 4
	USER_GROUP_TYPE_DEPT     = 5
	//重复发送公告 时间间隔单位 interval_unit	year:年,week:周,month:月,day:日,hour:时,minute:分
	Interval_Unit_Year   = "year"
	Interval_Unit_Week   = "week"
	Interval_Unit_Month  = "month"
	Interval_Unit_Day    = "day"
	Interval_Unit_Hour   = "hour"
	Interval_Unit_Minute = "minute"
	Interval_Unit_Second = "second"
	//定时任务类型 任务类型 1:重复性任务 2：一次性任务
	TIMER_TASK_TYPE_repeat     = 1
	TIMER_TASK_TYPE_disposable = 2

	//定时任务执行状态 1未执行 2执行中 3已执行成功 4已执行失败
	TIMER_ExecutionStatus_not_run         = 1
	TIMER_ExecutionStatus_in_run          = 2
	TIMER_ExecutionStatus_executed_sucess = 3
	TIMER_ExecutionStatus_executed_fail   = 4

	//部门表中数据类型 1：部门信息 2：部门员工关系
	DEPT_INFO  = 1
	DEPT_STAFF = 2

	//Communication 相关的枚举
	CHAT_ROOM_TYPE_single = "single" //一对一私聊
	CHAT_ROOM_TYPE_crowd  = "crowd"  //群聊
	//消息类型
	MSG_TYPE_ordinary = "1" //普通正常消息
	MSG_TYPE_friend   = "2" //添加好友

	//消息状态
	MSG_STATUS_WILL_processed        = "1" //未处理
	MSG_STATUS_WILL_Processing       = "2" //处理中
	MSG_STATUS_WILL_Processe_success = "3" //处理完成成功
	MSG_STATUS_WILL_Processe_failed  = "4" //处理完成失败

	//角色消息发送身份
	MSG_User_Identity_sender    = "sender"    //发送者
	MSG_User_Identity_recipient = "recipient" //接收者

	//好友关联状态
	User_Friend_Y  = "Y"  //正常
	User_Friend_N  = "N"  //不正常
	User_Friend_NT = "NT" //忽略
	User_Friend_H  = "H"  //黑名单
	User_Friend_W  = "W"  //待建立关系
	//好友类型
	FRIEND_TYPE_Chat_Only = "chat_only"
	//好友；来源
	FRIEND_Source_QR            = "QR" //二维码
	FRIEND_Source_Business_Card = "BC" //名片
	FRIEND_Source_Search_Phone  = "PH" //搜索手机号

	//好友请求同意与否
	FRIEND_Ask_agree   = "agree"   //同意
	FRIEND_Ask_neglect = "neglect" //忽略

	//聊天室成员身份
	CHAT_MEMBER_Identity_creator  = "creator"  //创建者
	CHAT_MEMBER_Identity_ordinary = "ordinary" //普通成员
	CHAT_MEMBER_Identity_ruler    = "ruler"    //管理者
)
